package com.vrv.netmgr.database;

import java.util.Map;

import android.util.Log;

import com.vrv.common.GlobalConstants;
import com.vrv.common.config.EdpModule;
import com.vrv.netmgr.database.dao.AlarmStatisticsDao;
import com.vrv.netmgr.database.dao.EquipmentChangedDao;


/**
 * 根据远程url映射本地查询接口
 * @author zxb
 *
 */
public class LocalQueryEntry {
    private static final String TAG = LocalQueryEntry.class.getSimpleName();
    private static final boolean DEBUG = true && GlobalConstants.DEBUG;
    
    public static String query(String url, Map<String, String> map){
        if (DEBUG) Log.v(TAG, "query()");
        
        String response = "";
        
        //审计报警·本地报警数据·本地区域报警数据统计
        if (url.contains(EdpModule.AlarmStatistics.WARNINGINFO_STATISTICS)) {
            response = AlarmStatisticsDao.select();
        }else if (url.contains(EdpModule.EquipmentChanged.EQUIPMENT_CHANGED)) {
            response = EquipmentChangedDao.select(map);
        }
        
        return response;
    }
}
